package com.blahti.example.drag2;

import data.ParkingDB;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.widget.EditText;

public class viewProfile extends Activity{
	final viewProfile thisActivity = this;
	private EditText name;
	private EditText id;
	private EditText car_no;
	private EditText phone;
	ParkingDB parking_db;
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.profile);
		parking_db=ParkingDB.getInstance();
		name = (EditText)findViewById(R.id.EditText01);
		id=(EditText)findViewById(R.id.EditText02);
		phone=(EditText)findViewById(R.id.EditText03);
		car_no=(EditText)findViewById(R.id.EditText04);
		SharedPreferences ref = getSharedPreferences("com.ruthy.parkApp",MODE_PRIVATE);
		id.setText(ref.getString("my_id", "unknown"));
		name.setText(ref.getString("my_name", "unknown"));
		phone.setText(ref.getString("my_phone", "unknown"));
		car_no.setText(ref.getString("my_car", "unknown"));
		

	}

}
